<!-- 画线 -->
<template>
  <div>
  </div>
</template>

<script>
import { reactive, toRefs, onMounted } from 'vue'

export default {
  setup() {
    const state = reactive({
      value: 'value'
    })

    onMounted(() => {

    })

    function functionName() {
      state.value = '123'
    }

    return {
      ...toRefs(state),
      functionName
    }
  }
}

</script>

<style lang='less' scoped>

</style>
